<template>
  <CommonPanel title="人员告警事件">
    <div class="content-box1">
      <div class="content-box1_top">今日告警
        <span>{{data?.event_day_logs?.counts}}</span>
      </div>
      <div>
        <ScrollTable :columns="columns" :tableData="data?.event_day_logs?.lists" >
      <template #default="{ data }">
        <div
          @click="handleDetail(item)"
          class="scroll-row"
          v-for="item in data?.event_day_logs?.lists"
          :key="item.id"
        >
          <div class="scroll-row__item prj-name">{{ item.name }}</div>
          <div class="scroll-row__item">{{ item.typeLabel }}</div>
          <div class="scroll-row__item">{{ item.given_amount }}</div>
        </div>
      </template>
    </ScrollTable>
      </div>
    </div>
  </CommonPanel>
</template>

<script setup>
import * as echarts from "echarts";
import { computed, ref, onMounted, watch, reactive } from "vue";
import { defineProps } from 'vue';
const props = defineProps({
  data: Object
});

const columns = [
  { label: "告警时间", prop: "startTime", className: "prj-name" },
  { label: "区域", prop: "regionId_name" },
  { label: "告警类型", prop: "srcName" },
];
const prjLists = ref([{
      crossTime:"2024/8/26 16:26:33",
      monitoringName:'西区大门',
      illegalType:'违停',
    },{
      crossTime:"2024/8/26 16:26:33",
      monitoringName:'西区大门',
      illegalType:'违停',
    }])


</script>

<style lang="scss" scoped>
.content-box1 {
  height: 100%;
  display: flex;
  box-sizing: border-box;
  padding: 16px 6px;
  flex-direction: column;

  &_top {
    height: 30px;
    width: 100%;
    text-align: center;
    line-height: 30px;
    font-size: 20px;
    color: #9BA3AE;

    span {
      font-weight: 600;
      font-size: 24px;
      color: #65E3F8;
    }
  }
  }
</style>
